package core.sub;

import core.cwm.CompanyRecord;
import core.obj.Object;

public class Company implements Subject {

	private String id;

	public void setID(String id){
		this.id = id;
	}

	public String getID() {
		return id;
	}

	public boolean equals(java.lang.Object obj) {
		if(obj instanceof Company){
			Company C = (Company)obj;
			if(C.getID().equals(id)) {
				return true;
			}
		}
		return false;
	}


	@Override
	public Object findObject(String objID) {
		return CompanyRecord.getInstance().findObject(objID);
	}
	
}
